import { Component } from '@angular/core';
import {IonicPage, ViewController} from "ionic-angular";

/**
 * Generated class for the CustomerVoliceComponent component.
 *
 * See https://angular.io/api/core/Component for more info on Angular
 * Components.
 */
@IonicPage()
@Component({
  selector: 'customer-volice',
  templateUrl: 'customer-volice.html'
})
export class CustomerVolicePage {

  text: any;

  constructor(private view: ViewController) {
  }

  /**
   * 获得记录
   * @param event
   */
  translate(event?: any[]) {
    for(let i = 0; i < event.length; i++) {
      console.log(event[i]);
    }
  }

  dismiss() {
    this.view.dismiss();
  }
}
